<?php
/**
 * Intreface DAO
 *
 * @author: http://phpdao.com
 * @date: 2012-11-21 10:54
 */
interface BibleDAO{

	/**
	 * Get Domain object by primry key
	 *
	 * @param String $id primary key
	 * @Return TiBible 
	 */
	public function load($id);

	/**
	 * Get all records from table
	 */
	public function queryAll();
	
	/**
	 * Get all records from table ordered by field
	 * @Param $orderColumn column name
	 */
	public function queryAllOrderBy($orderColumn);
	
	/**
 	 * Delete record from table
 	 * @param tiBible primary key
 	 */
	public function delete($id);
	
	/**
 	 * Insert record to table
 	 *
 	 * @param TiBible tiBible
 	 */
	public function insert($tiBible);
	
	/**
 	 * Update record in table
 	 *
 	 * @param TiBible tiBible
 	 */
	public function update($tiBible);	

	/**
	 * Delete all rows
	 */
	public function clean();

	public function queryByBook($value);

	public function queryByChapter($value1,$value2);

	public function queryByNo($value);

	public function queryByNoStart($value);

	public function queryByNoEnd($value);

	public function queryByArticle($value);

	public function queryByPARAGRAPH($value);

	public function queryByIP($value);

	public function queryByEntryDate($value);

	public function queryByRemark($value);


	public function deleteByBook($value);

	public function deleteByChapter($value);

	public function deleteByNo($value);

	public function deleteByNoStart($value);

	public function deleteByNoEnd($value);

	public function deleteByArticle($value);

	public function deleteByPARAGRAPH($value);

	public function deleteByIP($value);

	public function deleteByEntryDate($value);

	public function deleteByRemark($value);


}
?>